<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}"
      {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
    <title>{% block title %}{% endblock %}</title>
    {% block blockbots %}
        <meta name="robots" content="NONE,NOARCHIVE"/>
    {% endblock %}
    <meta name="renderer" content="webkit|ie-stand|ie-comp">

    <!-- LOADING -->
    {% load staticfiles i18n %}

    <!-- STYLESHEETS / EXTRASTYLE -->
    {% block stylesheets %}
        <link rel="stylesheet" type="text/css" href="{% static "wladmin/css/base.css" %}"/>
    {% endblock %}

    {% block extrastyle %}{% endblock %}

    <!-- JAVASCRIPTS / EXTRAHEAD -->
    {% block javascripts %}
        <script type="text/javascript" src="{% static "wenlincms/js/"|add:settings.JQUERY_FILENAME %}"></script>
        <script type="text/javascript">
            // Ensures jQuery does not pollute the global namespace
            $.noConflict();
            {% url "admin:index" as admin_index_url %}
            var ADMIN_URL = "{{ admin_index_url }}";
        </script>
    {% endblock %}

    {% block extrahead %}{% endblock %}

    {% if LANGUAGE_BIDI %}
        {% block rtl_styles %}
            <link rel="stylesheet" type="text/css"
                  href="{% block stylesheet_rtl %}{% static "wladmin/css/rtl.css" %}{% endblock %}"/>
        {% endblock %}
    {% endif %}

</head>

<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">

{% block afterbody %}{% endblock %}

<!-- CONTAINER -->
<div id="container">

    {% block header %}
        <!-- HEADER -->
        {% if not is_popup %}
            {% include "admin/includes_wladmin/header.html" %}
        {% endif %}
    {% endblock %}

    <!-- BREADCRUMBS -->
    {% block breadcrumbs %}
        <div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}
        </div>{% endblock %}

    <!-- MESSAGES -->
    {% if messages %}
        <ul class="messagelist">{% for message in messages %}
            <li class="{{ message.tags }}">{{ message }}</li>{% endfor %}</ul>
    {% endif %}

    {% block before_content %}{% endblock %}

    <!-- CONTENT -->
    <div id="content" class="{% block coltype %}colM{% endblock %}">
        {% block pretitle %}{% endblock %}
        {% block content_title %}{% if title %}
            <h1>{{ title }}</h1>{% endif %}{% endblock %}
        {% block content %}
            {% block object-tools %}{% endblock %}
            {{ content }}
        {% endblock %}
        {% block sidebar %}{% endblock %}
        <br class="clear"/>
    </div>

    <!-- FOOTER -->
    {% block footer %}
        <div id="footer"></div>
    {% endblock %}

</div>
</body>
</html>
